#include <bits/stdc++.h>
using namespace std;
const int maxn=1e5+10;
const int mod=998244353;
int main()
{
	ios::sync_with_stdio(false);
    cin.tie(0);cout.tie(0);

	int a,b;
	cin >> a >> b;
	if(a>=13)
	{
		cout <<b;
	}
	else if(a>=6&&a<=12)
	{
		cout << b/2;
	}
	else
	{
		cout << "0";
	}
    return 0;
}

